<div class="showrrboxtext">
    <div class="business_1">
        <div class="table-box tablenes">
            <div class="title">项目收款</div>
            <div class="tuo"><div class="tit">工程回款金额(元)</div><div class="con" id="business_1_shougonghuifee">0</div></div>
            <div class="tuo"><div class="tit">公司垫资金额(元)</div><div class="con" id="business_1_shougongdianfee">0</div></div>
        </div>
    </div>
    <div class="business_2 layui-hide">
        <div class="table-box tablenes">
            <div class="title">项目收款</div>
            <div class="tuo"><div class="tit">工程回款金额(元)</div><div class="con" id="business_2_shougonghuifee">0</div></div>
            <div class="tuo"><div class="tit">联营方备用金金额(元)</div><div class="con" id="business_2_shoulianbeifee">0</div></div>
            <div class="tuo"><div class="tit">收入合计(元)</div><div class="con" id="business_2_lianyingshoufee">0</div></div>
        </div>
        <div class="table-box tablenes">
            <div class="title">费用扣收</div>
            <div class="tuo"><div class="tit">管理费费率(%)</div><div class="con" id="business_2_lian_guanrate">0</div></div>
            <div class="tuo"><div class="tit">应扣管理费(元)</div><div class="con" id="business_2_lian_guanfee">0</div></div>
            <div class="tuo"><div class="tit">已扣管理费(元)</div><div class="con" id="business_2_kou_guanfee">0</div></div>
            <div class="tuo"><div class="tit">待扣管理费(元)</div><div class="con" id="business_2_dai_guanfee">0</div></div>
            <div class="tuo"><div class="tit">税费费率(%)</div><div class="con" id="business_2_lian_shuirate">0</div></div>
            <div class="tuo"><div class="tit">应扣税费(元)</div><div class="con" id="business_2_lian_shuifee">0</div></div>
            <div class="tuo"><div class="tit">已扣税费(元)</div><div class="con" id="business_2_kou_shuifee">0</div></div>
            <div class="tuo"><div class="tit">待扣税费(元)</div><div class="con" id="business_2_dai_shuifee">0</div></div>
            <div class="tuo"><div class="tit">其他扣收金额(元)</div><div class="con" id="business_2_kou_qifee">0</div></div>
            <div class="tuo"><div class="tit">扣收合计(元)</div><div class="con" id="business_2_kou_allfee">0</div></div>
        </div>
    </div>
</div>

<script>
    function set_right_relainfo(engininfo) {
        if(engininfo){
            if(engininfo.business == 1){
                $(".business_1").removeClass('layui-hide');
                $(".business_2").addClass('layui-hide');
            }else{
                $(".business_2").removeClass('layui-hide');
                $(".business_1").addClass('layui-hide');
            }
            $("#business_1_shougonghuifee").text(parseFormatNum(engininfo.shougonghuifee)).addClass('colorlan').click(function () {
                openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gchk&enginid='+engininfo.id);
            });
            $("#business_1_shougongdianfee").text(parseFormatNum(engininfo.shougongdianfee)).addClass('colorlan').click(function () {
                openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gsdz&enginid='+engininfo.id);
            });

            $("#business_2_shougonghuifee").text(parseFormatNum(engininfo.shougonghuifee)).addClass('colorlan').click(function () {
                openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gchk&enginid='+engininfo.id);
            });
            $("#business_2_shoulianbeifee").text(parseFormatNum(engininfo.shoulianbeifee)).addClass('colorlan').click(function () {
                openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_lyfbyj&enginid='+engininfo.id);
            });
            $("#business_2_lianyingshoufee").text(parseFormatNum(engininfo.lianyingshoufee));
            $("#business_2_lian_guanrate").text(engininfo.lian_guanrate).addClass('colorlan').click(function () {
                openNavPage('查看联营合同信息','contract_lian/index.php?status=1&enginid='+engininfo.id);
            });
            $("#business_2_lian_guanfee").text(parseFormatNum(engininfo.lian_guanfee));
            $("#business_2_kou_guanfee").text(parseFormatNum(engininfo.kou_guanfee)).addClass('colorlan').click(function () {
                openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=xmsr_lyfyhks_glf&enginid='+engininfo.id);
            });
            $("#business_2_dai_guanfee").text(parseFormatNum(engininfo.dai_guanfee));
            $("#business_2_lian_shuirate").text(engininfo.lian_shuirate).addClass('colorlan').click(function () {
                openNavPage('查看联营合同信息','contract_lian/index.php?status=1&enginid='+engininfo.id);
            });
            $("#business_2_lian_shuifee").text(parseFormatNum(engininfo.lian_shuifee));
            $("#business_2_kou_shuifee").text(parseFormatNum(engininfo.kou_shuifee)).addClass('colorlan').click(function () {
                openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=xmsr_lyfyhks_sf&enginid='+engininfo.id);
            });
            $("#business_2_dai_shuifee").text(parseFormatNum(engininfo.dai_shuifee));
            $("#business_2_kou_qifee").text(parseFormatNum(engininfo.kou_qifee)).addClass('colorlan').click(function () {
                openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=noguannoshui&enginid='+engininfo.id);
            });
            $("#business_2_kou_allfee").text(parseFormatNum(engininfo.kou_allfee));
        }
    }
</script>